
export default (url,data ={},method ='GET')=>{
	return new Promise((resolve,reject)=>{
		uni.request({
			url:'http://localhost:7788'+url,
			data,
			method,
			success(res){
				resolve(res.data)
			},
			fail(err) {
				reject(err)
			}
		})
	})
}